package com.lsj.service.impl;


import com.lsj.mapper.TestTypeMapper;
import com.lsj.pojo.TestType;
import com.lsj.service.TypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TestTypeServiceImpl implements TypeService {
    @Autowired
    private TestTypeMapper typeMapper;

    public void doInsert(TestType var1) throws Exception {
        typeMapper.insert(var1);
    }

    public void doUpdate(TestType var1) throws Exception {
        typeMapper.update(var1);
    }

    public void doDelete(String var1) throws Exception {
        typeMapper.delete(var1);
    }

    public TestType queryOne(String var1) throws Exception {
        return typeMapper.queryOne(var1);
    }

    public List<TestType> queryAll() throws Exception {
        return typeMapper.queryAll();
    }
}
